<%@page import="com.mmy.domain.scenic.TScenicOrder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>

<title>订单信息</title>
</head>
<body>
	
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>订单信息</h2>			
		</div>
	</header>
	<section class="container">
					<nav class="breadcrumb" >
					<a href="toscenicallorderindex" >全部</a> |
				<a href="toscenicunusedorderindex" >未入园</a> |
					<a href="toscenicrecentlyuseorderindex" >近期待用</a> |
						<a href="toscenicusedorderindex" >已入园</a> 
				<hr class="breadcrumb-hr" color=#F9F6E5 SIZE=3>
				
					</nav>
				<div class="information" >
						<h4 class="info-h4">
							<i class="fa fa-caret-right" aria-hidden="true" ></i>订单详细信息
						</h4>
				<div >
				<table class="info-table" >
				<tr>
					<th><label>景区名称</label></th>
					<td>
						<label>${dbScenicOrder.getScenicName()}</label>
					</td>
					<th><label>票种</label></th>
					<td colspan="3"> 
						<label>${dbScenicOrder.getTicketName()}</label>
					</td>
					
				</tr>	
				<tr>
					<th><label>预留操作人姓名</label></th>
					<td>
						<label>${dbScenicOrder.getReserveUserName()}</label>
					</td>
					<th><label>预留操作人所属公司</label></th>
					<td>
						<label>${dbScenicOrder.getReserveUserOrgID()}</label>
					</td>
					<th><label>预留操作日期</label></th>
					<td>
					<fmt:formatDate value='${dbScenicOrder.getReserveDate()}' pattern='yyyy-MM-dd'/>
					
					</td>
				</tr>
				<tr>
					<th><label>预留人姓名</label></th>
					<td>
					<label>
						${dbScenicOrder.getReserveName()}</label>
					</td>
					<th><label>预留联系方式</label></th>
					<td colspan="3">
						<label>${dbScenicOrder.getReserveTel()}</label>
					</td>
					
				</tr>
				<tr>
					<th><label>订单操作人姓名</label></th>
					<td>
						<label>${dbScenicOrder.getOrderUserName()}</label>
					</td>
					<th><label>订单操作人所属公司</label></th>
					<td>
						<label>${dbScenicOrder.getOrderUserOrgID()}</label>
					</td>
					<th><label>订单操作日期</label></th>
					<td>
					<fmt:formatDate value='${dbScenicOrder.getOrderDate()}' pattern='yyyy-MM-dd'/>
					
					</td>
				</tr>
				<tr>
					<th><label>订单人姓名</label></th>
					<td>
						<label>${dbScenicOrder.getOrderName()}</label>
					</td>
					<th><label>订单联系方式</label></th>
					<td>
						<label>${dbScenicOrder.getOrderTel()}</label>
					</td>
					<th><label>订单人身份证号</label></th>
					<td>
						<label>${dbScenicOrder.getIdentity()}</label>
					</td>
				</tr>
				<tr>
					
					<th><label>订单总额</label></th>
					<td>
						<label>${dbScenicOrder.getOrderAmount()}</label>
					</td>
					<th><label>订单数量</label></th>
					<td>
						<label>${dbScenicOrder.getOrderNumber()}</label>
					</td>
					<th><label>入园日期</label></th>
					<td>
					<fmt:formatDate value='${dbScenicOrder.getUseDate()}' pattern='yyyy-MM-dd'/>
					
					</td>
				</tr>
				<tr>
					<th><label>订单底价</label></th>
					<td>
						<label>${dbScenicOrder.getFloor()}</label>
					</td>
					<th><label>订单同业价</label></th>
					<td>
						<label>${dbScenicOrder.getPeer()}</label>
					</td>
					<th><label>订单售价</label></th>
					<td>
						<label>${dbScenicOrder.getPrice()}</label>
					</td>
				</tr>
				<tr>
					<th><label>应收款</label></th>
					<td>
						<label>${dbScenicOrder.getReceivable()}</label>
					</td>
					<th><label>实收款</label></th>
					<td>
						<label>${dbScenicOrder.getReceipt()}</label>
					</td>
					<th><label>付款类型</label></th>
				
							<c:choose>
						     <c:when test="${dbScenicOrder.getPayType() == 0}">
						           <td><label>现金</label></td>
						     </c:when>
						     <c:when test="${dbScenicOrder.getPayType() == 1}">
						           <td><label>微信</label></td>
						     </c:when>
						      <c:when test="${dbScenicOrder.getPayType() == 2}">
						           <td><label>支付宝</label></td>
						     </c:when>
						     
						    <c:otherwise>
						         <td><label>银联卡</label></td>
						    </c:otherwise>
					</c:choose>
					
					
				</tr>
				<tr>
					
					<th><label>订单状态</label></th>
					
						<c:choose>
						     <c:when test="${dbScenicOrder.getOrderState() == 0}">
						           <td><label>预留</label></td>
						     </c:when>
						     <c:when test="${dbScenicOrder.getOrderState() == 1}">
						           <td><label>正式订单</label></td>
						     </c:when>
						      <c:when test="${dbScenicOrder.getOrderState() == 2}">
						           <td><label>已交款</label></td>
						     </c:when>
						      <c:when test="${dbScenicOrder.getOrderState() == 3}">
						           <td><label>取消预留</label></td>
						     </c:when>
						    <c:otherwise>
						         <td><label>取消订单</label></td>
						    </c:otherwise>
					</c:choose>
					
					
					<th><label>出纳审核状态</label></th>
					<c:choose>
						     <c:when test="${dbScenicOrder.getCashierState() == 0}">
						           <td><label>未审核</label></td>
						     </c:when>
						     <c:when test="${dbScenicOrder.getCashierState() == 1}">
						           <td><label>通过</label></td>
						     </c:when>
						    <c:otherwise>
						         <td><label>未通过</label></td>
						    </c:otherwise>
					</c:choose>
					<th><label>会计对账状态</label></th>
					<c:choose>
						     <c:when test="${dbScenicOrder.getAccountState() == 0}">
						           <td><label>未审核</label></td>
						     </c:when>
						     <c:when test="${dbScenicOrder.getAccountState() == 1}">
						           <td><label>通过</label></td>
						     </c:when>
						    <c:otherwise>
						         <td><label>未通过</label></td>
						    </c:otherwise>
					</c:choose>
				</tr>
				<tr>
					
					
					<th><label>发票打印状态</label></th>
					<c:choose>
						     <c:when test="${dbScenicOrder.getInvoiceState() == 0}">
						           <td><label>未打印</label></td>
						     </c:when>
						     <c:when test="${tScenicOrder.getInvoiceState() == 1}">
						           <td><label>已打印</label></td>
						     </c:when>
						    <c:otherwise>
						         <td><label>已传真</label></td>
						    </c:otherwise>
					</c:choose>
				
					<th><label>退单打印状态</label></th>
					<c:choose>
						     <c:when test="${dbScenicOrder.getRefundState() == 0}">
						           <td><label>未打印</label></td>
						     </c:when>
						     <c:when test="${dbScenicOrder.getRefundState() == 1}">
						           <td><label>已打印</label></td>
						     </c:when>
						    <c:otherwise>
						         <td><label>已传真</label></td>
						    </c:otherwise>
					</c:choose>
					
					<th><label>结账汇款状态</label></th>
					<c:choose>
						     <c:when test="${dbScenicOrder.getRemittanceState() == 0}">
						           <td><label>未汇</label></td>
						     </c:when>
						     <c:when test="${dbScenicOrder.getRemittanceState() == 1}">
						           <td><label>已汇</label></td>
						     </c:when>
					</c:choose>
				</tr>
				<tr>
					<th><label>退款金额</label></th>
					<td>
						<label>${dbScenicOrder.getRefund()}</label>
					</td>
					<th><label>退款流程</label></th>
					<td colspan="3">
						<label>${dbScenicOrder.getRefundProcess()}</label>
					</td>
					
					
				</tr>
				<tr>
					<th><label>备注</label></th>
					<td colspan="5">
						<label>${dbScenicOrder.getMemo()}</label>
					</td>
				</tr>	
					
				</table>
				
				<center>
				
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
				</center> 		
							
				</div>
				
				
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
		
		<!-- Main Slider -->
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>

</html>